import _http from '@/utils/http'

export default {
    companyLogin(params, loading, headers) {
        return _http('post', {
            url: '/ums/w/top/login',
            apiName: '总部-登录',
        }, params, loading, headers)
    },
    authCaptcha(params, loading, headers) {
        return _http('get', {
            url: '/ums/auth/captcha.jpg',
            apiName: '获取图形校验码',
        }, params, loading, headers)
    },
    userMenu(params, loading, headers) {
        return _http('post', {
            url: '/ums/w/user/tree',
            apiName: '用户菜单树',
        }, params, loading, headers)
    },
}
